import { BasicMarker } from '../../js/BasicMarker.js';
import { BasicMarkers } from '../../js/BasicMarkers.js';
import { getMarkerIcon } from '../../js/icon.js';
import { getDevLocation, netIdsByAreaCode } from '@gis/lib/api';
import { useUserInfoStore } from '@gis/lib/pinia/userInfo.js';
import { handleCommonRes } from '@gis/lib/utils/resolver.js';
import get from 'lodash-es/get.js';
import { netYardIdsDataStore } from '@gis/lib/pinia/netYardIds.js';
import { openGoodsDeviceDialog } from '../../../../views/equipment/opt.js';
import env from '@gis/lib/env.js';

const VUE_APP_PROJECT_NAME = env.get('VUE_APP_PROJECT_NAME');

class Marker extends BasicMarker {
  constructor({ map, data }) {
    super({ map, data });
    /* this.type: 这个type主要用于筛选,需要和filter-legend里面的type相对应 */
    this.type = 'cycldz';
    super.create();
  }
  getIcon() {
    return getMarkerIcon(this.type);
  }
  getIconOption(icon) {
    return {
      content: `<div style="width: 52px;height: 98px;background: url(${icon}) center center no-repeat;background-size: 100% 100%"></div>`,
      offset: new AMap.Pixel(0, 0),
    };
  }
  onClick() {
    if (!VUE_APP_PROJECT_NAME) {
      openGoodsDeviceDialog(this.data);
    }
  }
}

export default class Cycldz extends BasicMarkers {
  constructor({ map }) {
    super();
    this.map = map;
  }
  createMarker(data) {
    return new Marker({ map: this.map, data });
  }
  async getDataAsync() {
    let list = [];
    if (VUE_APP_PROJECT_NAME === 'git-net-house-static') {
      const data = {
        cldz: [
          {
            latitude: '30.689144',
            name: '平安馨苑道闸入口',
            id: 'ff80808167ed672e0167eebdfb865eec',
            longitude: '104.100949',
          },
          {
            latitude: null,
            name: '北二路9号院道闸进口',
            id: 'ff80808167ef82a90167f2f1786f44ae',
            longitude: null,
          },
          {
            latitude: null,
            name: '北二路9号院道闸出口',
            id: 'ff80808167ef82a90167f2f514674d54',
            longitude: null,
          },
          {
            latitude: null,
            name: '虹波苑道闸进门',
            id: 'ff808081686df70201686ed833833f67',
            longitude: null,
          },
          {
            latitude: null,
            name: '虹波苑道闸出口',
            id: 'ff808081686df70201686ed93cc244cd',
            longitude: null,
          },
          {
            latitude: null,
            name: '荆竹小区六号院车辆进口',
            id: 'ff80808168731c240168732feb706266',
            longitude: null,
          },
          {
            latitude: null,
            name: '荆竹小区六号院车辆出口',
            id: 'ff80808168731c2401687331370368a6',
            longitude: null,
          },
          {
            latitude: '30.689137',
            name: '平安馨苑道闸出口',
            id: 'ff80808168731c2401687fae2d7d6957',
            longitude: '104.100949',
          },
          {
            latitude: '30.693288',
            name: '新兴苑道闸出口',
            id: 'ff80808168731c24016883cfaf561f8d',
            longitude: '104.102061',
          },
          {
            latitude: '30.693288',
            name: '新兴苑道闸入口',
            id: 'ff80808168731c24016883d30fb5325b',
            longitude: '104.10207',
          },
          {
            latitude: null,
            name: '东立国际2号门入口道闸',
            id: 'ff80808168841b1b0168971dad420a5c',
            longitude: null,
          },
          {
            latitude: null,
            name: '东立国际3号门出口道闸',
            id: 'ff80808168841b1b0168972173c42101',
            longitude: null,
          },
          {
            latitude: '30.636289',
            name: '漫岭云天车辆进口',
            id: 'ff80808168a2f3390168a3b4686774f7',
            longitude: '104.152372',
          },
          {
            latitude: '30.636902',
            name: '漫岭云天车辆出口',
            id: 'ff80808168a2f3390168a3b79829069c',
            longitude: '104.152853',
          },
          {
            latitude: null,
            name: '龙华居车辆入口',
            id: 'ff80808168e1039e0168e5b836d23991',
            longitude: null,
          },
          {
            latitude: null,
            name: '龙华居车辆出口',
            id: 'ff80808168e1039e0168e5bafb4d4959',
            longitude: null,
          },
          {
            latitude: null,
            name: '成天路32号道闸进口',
            id: 'ff8080816952525501695bf1ac1f0e25',
            longitude: null,
          },
          {
            latitude: null,
            name: '成天路32号道闸出口',
            id: 'ff8080816952525501695bf2846610dc',
            longitude: null,
          },
          {
            latitude: null,
            name: '华林西苑道闸进口',
            id: 'ff8080816952525501695c7f709d58b5',
            longitude: null,
          },
          {
            latitude: null,
            name: '华林西苑道闸出口',
            id: 'ff8080816952525501695c83083e6667',
            longitude: null,
          },
          {
            latitude: '30.700951',
            name: '水畔经典道闸出口',
            id: 'ff808081696bbceb01696c280f553443',
            longitude: '104.10119',
          },
          {
            latitude: '30.700862',
            name: '水畔经典道闸入口',
            id: 'ff808081696bbceb01696c29e3703c50',
            longitude: '104.101235',
          },
          {
            latitude: '30.686913',
            name: '春熙苑道闸入口',
            id: 'ff808081697135320169748dad154c0e',
            longitude: '104.128639',
          },
          {
            latitude: '30.686928',
            name: '春熙苑道闸出口',
            id: 'ff8080816971353201697491659c5bba',
            longitude: '104.12863',
          },
          {
            latitude: null,
            name: '水乡嘉苑道闸出口',
            id: 'ff8080816a447367016a491192486e15',
            longitude: null,
          },
          {
            latitude: null,
            name: '水乡嘉苑道闸进口',
            id: 'ff8080816a447367016a4917345a0d47',
            longitude: null,
          },
          {
            latitude: '30.630967',
            name: '和韵路109号地下室车库出口01',
            id: 'ff8080816c1c8a87016c284900145b71',
            longitude: '104.163322',
          },
          {
            latitude: '30.630967',
            name: '和韵路109号地下室车库出口02',
            id: 'ff8080816c1c8a87016c284a31b15b7e',
            longitude: '104.163322',
          },
          {
            latitude: '30.630967',
            name: '和韵路109号地下室车库入口01',
            id: 'ff8080816c1c8a87016c2858b4d25cbe',
            longitude: '104.163322',
          },
          {
            latitude: '30.630967',
            name: '和韵路109号地下室车库入口02',
            id: 'ff8080816c1c8a87016c285a57a85ce5',
            longitude: '104.163322',
          },
          {
            latitude: '30.634875',
            name: '和美东路128号道闸入口',
            id: 'ff8080816c1c8a87016c2bee3990650d',
            longitude: '104.164381',
          },
          {
            latitude: '30.634875',
            name: '和美东路128号道闸出口',
            id: 'ff8080816c1c8a87016c2beee6516515',
            longitude: '104.164381',
          },
          {
            latitude: null,
            name: '东林小区出口',
            id: 'ff80808171a60a780171b4858037095f',
            longitude: null,
          },
          {
            latitude: null,
            name: '东林小区入口',
            id: 'ff80808171a60a780171b48798bd0960',
            longitude: null,
          },
          {
            latitude: '30.660214',
            name: '玉双苑大门入口',
            id: 'ff80808171c53cb00171ca3324ea02bf',
            longitude: '104.104234',
          },
          {
            latitude: '30.66023',
            name: '玉双苑大门出口',
            id: 'ff80808171c53cb00171ca3572c002c0',
            longitude: '104.10423',
          },
          {
            latitude: '30.68675',
            name: '入口1',
            id: 'ff80808171e8e4c80171f2b606e00a87',
            longitude: '104.102099',
          },
          {
            latitude: '30.686746',
            name: '入口2',
            id: 'ff80808171e8e4c80171f2b6970d0a88',
            longitude: '104.102099',
          },
          {
            latitude: '30.686727',
            name: '出口',
            id: 'ff80808171e8e4c80171f2b709000a89',
            longitude: '104.102175',
          },
          {
            latitude: null,
            name: '跳蹬河南区2号院入口',
            id: 'ff80808172e0eb500172f9d122a805ee',
            longitude: null,
          },
          {
            latitude: null,
            name: '跳蹬河南区2号院出口',
            id: 'ff80808172e0eb500172f9d1c2f705ef',
            longitude: null,
          },
          {
            latitude: null,
            name: '跳蹬河南区3号院入口',
            id: 'ff80808172e0eb500172f9fe552f060d',
            longitude: null,
          },
          {
            latitude: null,
            name: '跳蹬河南区3号院出口',
            id: 'ff80808172e0eb500172f9fedbb7060e',
            longitude: null,
          },
          {
            latitude: null,
            name: '跳蹬河南区4号院入口',
            id: 'ff80808172e0eb500172fa13c8120613',
            longitude: null,
          },
          {
            latitude: null,
            name: '跳蹬河南区4号院出口',
            id: 'ff80808172e0eb500172fa1453920614',
            longitude: null,
          },
          {
            latitude: null,
            name: '跳蹬河南路5号院入口',
            id: 'ff80808172e0eb500172fa2b03fc0622',
            longitude: null,
          },
          {
            latitude: '30.670105',
            name: '尚锦城出口',
            id: 'ff80808172e0eb50017302f0433d0943',
            longitude: '104.153437',
          },
          {
            latitude: '30.670105',
            name: '尚锦城入口',
            id: 'ff80808172e0eb50017302f0d4dd0944',
            longitude: '104.153437',
          },
          {
            latitude: '30.669234',
            name: '舜惠家园后门出口',
            id: 'ff80808172e0eb500173031317cb0954',
            longitude: '104.151312',
          },
          {
            latitude: '30.657253',
            name: '东锦城A区出口',
            id: 'ff80808172e0eb500173044b9c530a12',
            longitude: '\r\n104.161588',
          },
          {
            latitude: '30.657253',
            name: '东锦城A区入口',
            id: 'ff80808172e0eb500173044c3bf50a13',
            longitude: '\r\n104.161588',
          },
          {
            latitude: '30.659221',
            name: '城投东庐停车场入口',
            id: 'ff80808172e0eb50017308b1dd950b5f',
            longitude: '104.156014',
          },
          {
            latitude: '30.659221',
            name: '城投东庐停车场出口',
            id: 'ff80808172e0eb50017308b25e510b60',
            longitude: '104.156014',
          },
          {
            latitude: null,
            name: '跳蹬河南区6号院出口',
            id: 'ff80808172e0eb5001730d3016b30c84',
            longitude: null,
          },
          {
            latitude: null,
            name: '跳蹬河南区6号远入口',
            id: 'ff80808172e0eb5001730d30b6a40c85',
            longitude: null,
          },
          {
            latitude: '30.669234',
            name: '舜惠家园入口',
            id: 'ff80808172e0eb5001730e5053fc0d9e',
            longitude: '104.151312',
          },
          {
            latitude: '30.669234',
            name: '舜和家园A区停车场出口',
            id: 'ff808081731333cc0173233dfb3b05a8',
            longitude: '104.151312',
          },
          {
            latitude: '30.669234',
            name: '舜和家园A区停车场入口',
            id: 'ff808081731333cc0173233e9c5605a9',
            longitude: '104.151312',
          },
          {
            latitude: null,
            name: '车辆抓拍摄像头入口',
            id: 'ff808081744e3c0e01746b9f4b7f6265',
            longitude: null,
          },
          {
            latitude: null,
            name: '车辆抓拍摄像头出口',
            id: 'ff808081744e3c0e01746ba0731c68ca',
            longitude: null,
          },
          {
            latitude: null,
            name: '龙翔人家车辆道闸1',
            id: 'ff808081744e3c0e01746cf262843b5f',
            longitude: null,
          },
          {
            latitude: null,
            name: '龙翔人家车辆道闸2',
            id: 'ff808081744e3c0e01746cf2ef3b3ef8',
            longitude: null,
          },
          {
            latitude: null,
            name: '仙湖公馆道闸出口',
            id: 'ff808081746d0f8201748c7b1e586ac4',
            longitude: null,
          },
          {
            latitude: null,
            name: '仙湖公馆道闸进口',
            id: 'ff808081746d0f8201748c86f0486ac5',
            longitude: null,
          },
          {
            latitude: '30.684383',
            name: '东方明珠花园东区1号门进',
            id: 'ff8080817620e66f017621fc9de60790',
            longitude: '104.122013',
          },
          {
            latitude: '30.682863',
            name: '东方明珠花园东区2号门出口',
            id: 'ff80808176328caf01763b48388f2ca2',
            longitude: '104.119765',
          },
          {
            latitude: '30.682762',
            name: '东方明珠花园东区2号门入口',
            id: 'ff80808176328caf01763b4f61492cad',
            longitude: '104.119833',
          },
          {
            latitude: '30.683894',
            name: '东方明珠花园东区三号门出口',
            id: 'ff808081767361b7017683a630050953',
            longitude: '104.120078',
          },
          {
            latitude: '30.726358',
            name: '怡里馨居车辆入口',
            id: 'ff808081767361b70176845cdf860a4f',
            longitude: '104.141553',
          },
          {
            latitude: '30.726331',
            name: '怡里馨居车辆出口',
            id: 'ff808081767361b70176845e850b0a53',
            longitude: '104.141585',
          },
          {
            latitude: '30.637777',
            name: '停车场入口',
            id: 'ff80808176ae697e0176b188740c0231',
            longitude: '104.154922',
          },
          {
            latitude: '30.637017',
            name: '停车场出口',
            id: 'ff80808176ae697e0176b18928170232',
            longitude: '104.153035',
          },
          {
            latitude: '30.63363',
            name: '佳年华广场停车场出口',
            id: 'ff80808176f7fadd0176fa67234a0b8b',
            longitude: '104.139457',
          },
          {
            latitude: '30.633652',
            name: '佳年华广场停车场入口',
            id: 'ff80808176f7fadd0176fa6af99e0bc8',
            longitude: '104.139444',
          },
          {
            latitude: '30.639995',
            name: '柏仕公馆停车场入口',
            id: 'ff80808176fd3d430176fe819e0a00bb',
            longitude: '104.154727',
          },
          {
            latitude: '30.639226',
            name: '柏仕公馆停车厂出口',
            id: 'ff80808176fd3d430176fe829bb900c1',
            longitude: '104.154287',
          },
          {
            latitude: '30.70892',
            name: '龙腾雅苑1号院旁出',
            id: 'ff80808177401b8d017742b71e3b0a63',
            longitude: '104.220215',
          },
          {
            latitude: '30.708908',
            name: '龙腾雅苑1号院旁进',
            id: 'ff80808177401b8d017742b855590a6b',
            longitude: '104.220242',
          },
          {
            latitude: '30.626888',
            name: '兴城嘉苑1期A区进口',
            id: 'ff808081782695b401782ecd13da4441',
            longitude: '104.146017',
          },
          {
            latitude: '30.627362',
            name: '兴城嘉苑1期A区出口',
            id: 'ff808081782695b401782ecdb7cf4443',
            longitude: '104.144935',
          },
          {
            latitude: '30.649184',
            name: '尚东美林1区车辆入口',
            id: 'ff8080817859de4f01785cf4e72811a6',
            longitude: '104.159835',
          },
          {
            latitude: '30.649231',
            name: '尚东美林1区车辆出口',
            id: 'ff8080817859de4f01785cf70a4511c6',
            longitude: '104.159839',
          },
          {
            latitude: '30.648055',
            name: '上东世家车辆入口',
            id: 'ff8080817859de4f01785d21618e1424',
            longitude: '104.159435',
          },
          {
            latitude: '30.648086',
            name: '上东世家车辆出口',
            id: 'ff8080817859de4f01785d23ee5f144c',
            longitude: '104.159525',
          },
          {
            latitude: '30.647144',
            name: '东虹路54号出',
            id: 'ff8080817859de4f01785ddc97ba1dd5',
            longitude: '104.159173',
          },
          {
            latitude: '30.647109',
            name: '东虹路54号进',
            id: 'ff8080817859de4f01785ddeafa61de2',
            longitude: '104.159231',
          },
          {
            latitude: '30.651637',
            name: '东虹路65号院车辆出口',
            id: 'ff8080817859de4f01785e2dc01e2138',
            longitude: '104.160566',
          },
          {
            latitude: '30.651707',
            name: '东虹路65号车辆入口',
            id: 'ff8080817859de4f01785e2fe974214b',
            longitude: '104.160503',
          },
          {
            latitude: '30.62862',
            name: '兴城嘉苑3期车辆入口',
            id: 'ff80808178834dca0178865003dd16b7',
            longitude: '104.14133',
          },
          {
            latitude: '30.628667',
            name: '兴城嘉苑3期车辆出口',
            id: 'ff80808178834dca017886521ae616ef',
            longitude: '104.141438',
          },
          {
            latitude: '30.648177',
            name: '停车场右边入口',
            id: 'ff80808179c834140179cb7d32d50c0c',
            longitude: '104.137679',
          },
          {
            latitude: '30.648154',
            name: '停车场左边出口',
            id: 'ff80808179c834140179cb7ebf7a0c1d',
            longitude: '104.137747',
          },
          {
            latitude: '30.644259',
            name: '朗诗正门左边出口',
            id: 'ff80808179c834140179cb88077e0c48',
            longitude: '104.13559',
          },
          {
            latitude: '30.645079',
            name: '东虹路33号院入口',
            id: 'ff80808179d46e870179d4c7514e0296',
            longitude: '104.157785',
          },
          {
            latitude: '30.645079',
            name: '东虹路33号院出口',
            id: 'ff80808179d46e870179d4c9516702a0',
            longitude: '104.157763',
          },
          {
            latitude: '30.642873',
            name: '朗诗正门右边入口',
            id: 'ff8080817b09d78b017b0abfb290077f',
            longitude: '104.136134',
          },
          {
            latitude: '30.645667',
            name: '停车场入口',
            id: 'ff8080817b14a5c8017b157946c5077f',
            longitude: '104.130759',
          },
          {
            latitude: '30.645694',
            name: '停车场出口',
            id: 'ff8080817b14a5c8017b15797fa60783',
            longitude: '104.130709',
          },
          {
            latitude: '30.629722',
            name: '二期正门右边车辆进',
            id: 'ff8080817b14a5c8017b33f52f09655c',
            longitude: '104.133111',
          },
          {
            latitude: '30.635688',
            name: '二期正门左边车辆出',
            id: 'ff8080817b14a5c8017b33f577636562',
            longitude: '104.134836',
          },
          {
            latitude: '30.645934',
            name: '二期正门左边车辆进',
            id: 'ff8080817b14a5c8017b33f5b8636563',
            longitude: '104.135079',
          },
          {
            latitude: '30.645239',
            name: '二期正门右边车辆出',
            id: 'ff8080817b14a5c8017b33f5f66d6566',
            longitude: '104.131476',
          },
          {
            latitude: '30.650857',
            name: '大门进',
            id: 'ff8080817b76ef36017b7883d5c40951',
            longitude: '104.15918',
          },
          {
            latitude: '30.650886',
            name: '大门出',
            id: 'ff8080817b76ef36017b7884bd250952',
            longitude: '104.159203',
          },
          {
            latitude: '30.662773',
            name: '东方惠城B区出口',
            id: 'ff8080817c9b4199017ca5e584b62e31',
            longitude: '104.156503',
          },
          {
            latitude: '30.950876',
            name: '东方惠城B区入口',
            id: 'ff8080817c9b4199017ca5e742aa2e4d',
            longitude: '106.019193',
          },
          {
            latitude: '30.688915',
            name: '车牌识别摄像机',
            id: 'ff8080817e005769017e048b9d3c1169',
            longitude: '104.112826',
          },
          {
            latitude: '30.68897',
            name: '车牌识别摄像机',
            id: 'ff8080817e005769017e048b9e07116a',
            longitude: '104.112754',
          },
          {
            latitude: '30.689222',
            name: '车牌识别摄像机',
            id: 'ff8080817e005769017e048b9ea7116b',
            longitude: '104.1131',
          },
          {
            latitude: '30.688958',
            name: '车牌识别摄像机',
            id: 'ff8080817e005769017e048b9f5b116c',
            longitude: '104.112723',
          },
          {
            latitude: '30.695672',
            name: '出口2',
            id: 'ff8080817f4f1114017f52a156b20a4b',
            longitude: '104.114596',
          },
          {
            latitude: '30.695144',
            name: '入口1',
            id: 'ff8080817f4f1114017f52a158340a4c',
            longitude: '104.114115',
          },
          {
            latitude: '30.69516',
            name: '出口1',
            id: 'ff8080817f4f1114017f52a502170a78',
            longitude: '104.114084',
          },
          {
            latitude: '30.695688',
            name: '入口2',
            id: 'ff8080817f4f1114017f52b74f740ba6',
            longitude: '104.114587',
          },
          {
            latitude: '30.630233',
            name: '香榭兰庭一期车辆进口',
            id: 'ff8080818137a5eb018137d4123d00ee',
            longitude: '104.142111',
          },
          {
            latitude: '30.630194',
            name: '香榭兰庭一期车辆出口',
            id: 'ff8080818137a5eb018137d4991600f0',
            longitude: '104.141994',
          },
          {
            latitude: '30.630745',
            name: '香榭兰庭一期车辆后门进口',
            id: 'ff8080818137a5eb018137d5402c00f2',
            longitude: '104.140907',
          },
          {
            latitude: '30.630683',
            name: '香榭兰庭一期车辆后门出口',
            id: 'ff8080818137a5eb018137d5a71100f5',
            longitude: '104.140952',
          },
          {
            latitude: '30.626042',
            name: '东汇家园大门车辆进口',
            id: 'ff8080818137a5eb018137d7ad3700fa',
            longitude: '104.141314',
          },
          {
            latitude: '30.626042',
            name: '东汇家园大门车辆出口',
            id: 'ff8080818137a5eb018137d8377e00fe',
            longitude: '104.141215',
          },
          {
            latitude: '30.627083',
            name: '东汇家园后门车辆出口',
            id: 'ff8080818137a5eb018137d8a55f0100',
            longitude: '104.141421',
          },
          {
            latitude: '30.628167',
            name: '锦绣家园大门进口',
            id: 'ff8080818137a5eb018137dac7b40103',
            longitude: '104.142457',
          },
          {
            latitude: '30.628182',
            name: '锦绣嘉园后门出口',
            id: 'ff8080818137a5eb018137db4b600104',
            longitude: '104.142385',
          },
          {
            latitude: '30.629976',
            name: '香榭兰庭二期车辆进口',
            id: 'ff8080818137a5eb018137e73dd40130',
            longitude: '104.143351',
          },
          {
            latitude: '30.630372',
            name: '香榭兰庭二期车辆出口',
            id: 'ff8080818137a5eb018137e7c6e50132',
            longitude: '104.14336',
          },
          {
            latitude: '30.631015',
            name: '进口',
            id: 'ff80808182a536ca0182a6129f5f1821',
            longitude: '104.160215',
          },
          {
            latitude: '30.631015',
            name: '出口',
            id: 'ff80808182a536ca0182a61332c61822',
            longitude: '104.160161',
          },
          {
            latitude: '30.627229',
            name: '兴城嘉苑1期B区进口',
            id: 'ff8080818379742a01838414dd7d131b',
            longitude: '104.144839',
          },
          {
            latitude: '30.627462',
            name: '兴城嘉苑1期B区出口',
            id: 'ff8080818379742a01838415a163131c',
            longitude: '104.146617',
          },
          {
            latitude: '30.649788',
            name: '尚东美林2区车辆入口',
            id: 'ff8080818379742a0183841ae1cc131d',
            longitude: '104.160076',
          },
          {
            latitude: '30.649788',
            name: '尚东美林2区车辆出口',
            id: 'ff8080818379742a0183841b7f00131e',
            longitude: '104.160328',
          },
          {
            latitude: '30.669289',
            name: '天空城车辆道闸出口',
            id: 'ff8080818580f8d8018594a8ff771406',
            longitude: '104.141998',
          },
          {
            latitude: '30.669281',
            name: '天空城车辆道闸入口',
            id: 'ff8080818580f8d8018594a9cfa1140d',
            longitude: '104.141993',
          },
          {
            latitude: '30.66299',
            name: '奥园三期4栋-5栋车辆道闸入口',
            id: 'ff80808186e492eb0186fd04cbf2286e',
            longitude: '104.141667',
          },
          {
            latitude: '30.662994',
            name: '奥园三期4栋-5栋车辆道闸出口',
            id: 'ff80808186e492eb0186fd13a82e2899',
            longitude: '104.141654',
          },
          {
            latitude: '30.663631',
            name: '奥园三期3栋-4栋车辆道闸入口',
            id: 'ff80808186e492eb0186fd207ceb2916',
            longitude: '104.141125',
          },
          {
            latitude: '30.663628',
            name: '奥园三期3栋-4栋车辆道闸出口',
            id: 'ff80808186e492eb0186fd214aa8291a',
            longitude: '104.141134',
          },
          {
            latitude: '30.664822',
            name: '奥园三期1栋车辆道闸入口',
            id: 'ff80808186e492eb0186fd2483172926',
            longitude: '104.141373',
          },
        ],
      };
      list = get(data, 'cldz', []);
    } else {
      const { area_code } = useUserInfoStore();
      const { getNetYardIds } = netYardIdsDataStore();
      const data = await handleCommonRes(getDevLocation, {
        area_code: area_code,
        yard_id: getNetYardIds,
      });
      list = get(data, 'cldz', []);
    }

    // console.log(list, 'cldz扎点列表');
    return list.map((item) => {
      return Object.assign({}, item, {
        lnglat: [item.longitude, item.latitude],
      });
    });
  }
}
